or operator in shell

47

or operator in shell -

if [ $uptime -lt 0 ] || [ $questions -lt 1 ] || [ $slow -gt 10 ]; then
    some code
fi

Comments

Submit
0 Comments